//
//  OSCEmoticonPackage.h
//  OSCEmoctionTools
//
//  Created by 8b410-2 on 17/1/6.
//  Copyright © 2017年 abb. All rights reserved.
//

#import <Foundation/Foundation.h>

@class OSCEmoticonPackage,OSCEmoticon;

/**
 表情包
 */
@interface OSCEmoticonPackage : NSObject
/// 包名
@property (nonatomic, strong) NSString *packgeName;
/// 表情模型数组
@property (nonatomic, strong) NSArray *emoticons;


/**
 表情包单例
 */
+ (NSArray *)sharePackageList;

/**
 添加空白Model
 */
- (void)appendEmtyEmoticons;


+ (NSString *)stringFromEmoticonAttributedString:(NSAttributedString *)att;

+ (NSAttributedString *)emoticonStringFromAttributedString:(NSAttributedString *)attrString;

@end

/**
 表情模型
 */
@interface OSCEmoticon : NSObject
/// 表情名称
@property (nonatomic, copy) NSString *chs;
/// 表情图片名
@property (nonatomic, copy) NSString *imageName;
/// emoji表情字符串
@property (nonatomic, copy) NSString *emojiString;
/// 是否是删除按钮
@property (nonatomic, assign) BOOL isRemoveButton;

/**
 创建一个删除键或者空白表情模型

 @param isRemovoButton 是否是删除按钮
 @return 删除按钮模型或空白模型
 */
+ (instancetype)emoticonWithIsRemoveButton:(BOOL)isRemovoButton;

/**
 初始化一个表情模型
 */
- (instancetype)initWithDict:(NSDictionary *)dict;

@end
